/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pradoeditor.resources.text;

import pradoeditor.comun.logger.CustomLogger;
import pradoeditor.comun.logger.LoggerHelper;

/**
 *
 * @author jaimeg
 */
public class MessagesManager
{
    final static String pathResource ="pradoeditor/resources/text/MessagesBundle";
    
    public static String getMessage(String messageKey)
    {
        String lReturn;
        try
        {
            lReturn = java.util.ResourceBundle.getBundle(pathResource).getString(messageKey);
        }
        catch(Exception ex)
        {
            CustomLogger.writeError(MessagesManager.class.getName(), ex);
            lReturn = messageKey;
        }

        return lReturn;
    }
}
